Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct Microsoft.​AspNetCore.​Http.​Features.​FeatureReference<​T>
Assembly: Microsoft.Extensions.Features
A cached reference to a feature.
Fields and Constants
public static readonly
FeatureReference<​T>
Default
Gets the default <see cref="T:Microsoft.AspNetCore.Http.Features.FeatureReference`1" /> .
Methods
public
T
Fetch​(IFeatureCollection features)
Gets the feature of type <typeparamref name="T" /> from <paramref name="features" /> .
Returns The feature.
features
The <see cref="T:Microsoft.AspNetCore.Http.Features.IFeatureCollection" /> .
public
T
Update​(IFeatureCollection features,
T feature)
Updates the reference to the feature.
Returns A reference to <paramref name="feature" /> after the operation has completed.
features
The <see cref="T:Microsoft.AspNetCore.Http.Features.IFeatureCollection" /> to update.
feature
The instance of the feature.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object